<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--<style>-->
        <!--.myCanvas{-->
            <!--background: red;-->
            <!--width: 200px;-->
            <!--height: 200px;-->
        <!--}-->
    <!--</style>-->

</head>
<body>
<canvas id="myCanvas">不支持html5画布标记</canvas>
<script type="text/javascript">
    var canvas=document.getElementById('myCanvas');
    var ctx=canvas.getContext('2d');
    ctx.fillStyle='#FF0000';
    ctx.fillRect(32,89,150,200);
</script>
</body>
</html>